package com.android.citynetworkpin.model.group;

import com.google.gson.Gson;
import com.zhy.http.okhttp.callback.Callback;

import okhttp3.Response;

/**
 * Created by Administrator on 2017/6/27.
 */

public abstract class BidCompetitionAGoodsListCallback extends Callback<BidCompetitionAGoodsListData> {

    @Override
    public BidCompetitionAGoodsListData parseNetworkResponse(Response response, int id) throws Exception {
        String string = response.body().string();
        BidCompetitionAGoodsListData bidCompetitionAGoodsListData = new Gson().fromJson(string,BidCompetitionAGoodsListData.class);
        return bidCompetitionAGoodsListData;
    }
}